home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch06 / 06fig12.wrl < prev   
Text File  |  1996-09-23  |  830b  |  45 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright 1997 By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group{
  6.     children [
  7.     # Lamp base
  8.         Shape {
  9.             appearance DEF White Appearance {
  10.                 material Material { }
  11.             }
  12.             geometry Cylinder {
  13.                 radius 0.1
  14.                 height 0.01
  15.             }
  16.         },
  17.     # Base joint
  18.         Transform {
  19.             translation 0.0 0.15 0.0
  20.             rotation    1.0 0.0 0.0  -0.7
  21.             center      0.0 -0.15 0.0
  22.             children [
  23.             # Lower arm
  24.                 DEF LampArm Shape {
  25.                     appearance USE White
  26.                     geometry Cylinder {
  27.                         radius 0.01
  28.                         height 0.3
  29.                     }
  30.                 },
  31.             # Lower arm - second arm joint
  32.                 Transform {
  33.                     translation 0.0 0.3 0.0
  34.                     rotation    1.0 0.0 0.0  1.9
  35.                     center      0.0 -0.15 0.0
  36.                     children [
  37.                     # Second arm
  38.                         USE LampArm
  39.                     ]
  40.                 }
  41.             ]
  42.         }
  43.     ]
  44. }
  45.